As long as you encode with x264 CRF mode (not 2-pass) there's no need to create interim lossless files I think. If you encounter memory problems due to heavy AVS being processed internally by x264 then you might try to separate Avisynth & x264 processes altogether. To see how it's done you can look at command lines generated by wonderful Lord Mulder's
Simple x264 Launcher.