Add optimizations to Nginx and PHP configurations