updates for ability to cache packets in api.
Removed unused function declaration.