some fixes and performance tests
Made some optimizations and incremented performance. Now cached version runs in one tenth of the time of the non cached version
added some tests for validators