try lock instead of synchronize and simplified http requests cache

Change-Id: I090e1ce9d10e4eb02efb84f1ed6dec4c134bcbb1