How to store objects in memory between requests for all sess


I’m using a YAML file for localizing my webapp. As it works now the
file is loaded and parsed from file for each request. Since the file
does not change often I would like to have the parsed object in memory
to avoid loading and parsing the object for each request. My sessions
are stored in the database so that is not a good option since the
object would need to be recreated for each request anyway.

Is it possible to have a object in memory between requests and
available for all sessions?

Kind regards,