I have a query with many includeKeys which are pointers to another class. After receiving the data from parse cloud all the records are getting stored locally using pinA
This was a bug in the Parse.com local data store functionality for iOS.
From the 1.6.3 release notes:
"Improved consistency of Local Datastore / Parse queries with includeKey: and NSNull values."