PHP class for file encryption with low memory consumption