Describe some techniques and best practices you would employ to optimize the performance of a PHP application