Revert "Dev Now use proper caching for LEM instead of storing it in the session."

This reverts commit 3bcc8b375ad2c217a1345bfcdacb40b25be47a25.
Revert "Removed session variable."

This reverts commit 54c3bbab47b05035be8251f17e626ee46a3f83b5.