Use array cache when not in prod env.
Extending the Controller class for cleaner code.