I'm curious how big the files are you're trying to upload... That is,
how close to 16M can you get before the script crashes? If you're not
hitting close to that limit, could it be that you have some extra
variables with data that you're not using? Try cleaning up your code as
much as possible, you may be able to squeeze something out.