Added memory and time, added loops to test speed.
Basic caching to Permission and Section.

Just a temporary measure until a more robust caching system is
implemented.