Memory and process optimizations