Added cacheing of all permission calls.
Testing the performance of cahcing values.